package com.ruoyi.demo.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 商品视图对象 goods
 *
 * @author fjw
 * @date 2023-06-03
 */
@Data
@ExcelIgnoreUnannotated
public class GoodsVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称")
    private String name;

    /**
     * 商品类型
     */
    @ExcelProperty(value = "商品类型")
    @ExcelDictFormat(dictType = "goodsType")
    private Long typeId;

    /**
     * 商品品牌
     */
    @ExcelProperty(value = "商品品牌")
    private String brand;

    /**
     * 商品地址
     */
    @ExcelProperty(value = "商品地址", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "address")
    private Long addressId;

    /**
     * 商品图片
     */
    @ExcelProperty(value = "商品图片")
    private String image;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ExcelProperty(value = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;
}
